function addSysMeeting($scope, CertusFormAjax) {
    CertusFormAjax.ajax('meetTypeList',{},function (response) {
        $scope.typeList = response.data;
    });
    
    $(".submit").on('click',function () {
        if (!certusValidateNotnull()) {
            return;
        }

        var meetTitle = $("#mtName").val();
        var peopleNum = $("#peopleNum").val();

        if (meetTitle == "" || meetTitle == null || meetTitle == undefined) {
            layer.msg("会议名称不能为空！");
            return;
        }
        if (peopleNum == "" || peopleNum == null || peopleNum == undefined) {
            layer.msg("会议人数不能为空！");
            return;
        }

        // 获取开始日期时间
        var startDay = $("#beginTime").val();
        var startTime = $("#start option:selected").val();
        var startDT = startDay + " " + startTime;

        // 获取结束日期时间
        var endDay = $("#endTime").val();
        var endTime = $("#end option:selected").val();
        var endDT = endDay + " " + endTime;

        if (startDay == "" || startDay == null || startDay == undefined) {
            layer.msg("开始时间不能为空！");
            return;
        }
        if (endDay == "" || endDay == null || endDay == undefined) {
            layer.msg("结束时间不能为空！");
            return;
        }

        // 转换开始标准时间
        var start = new Date(startDT);
        // 转换结束标准时间
        var end = new Date(endDT);
        // 当前日期及时间
        var toDay = new Date();

        if (Date.parse(start) < Date.parse(toDay)) {
            layer.msg("开始时间不能小于当前时间！");
            return;
        }
        if (Date.parse(end) < Date.parse(toDay)) {
            layer.msg("结束时间不能小于当前时间！");
            return;
        }
        if (Date.parse(end) == Date.parse(start)) {
            layer.msg("结束时间不能等于开始时间！");
            return;
        }
        if (Date.parse(end) < Date.parse(start)) {
            layer.msg("结束时间不能小于开始时间！");
            return;
        }
        var arr = $("form").serializeArray();
        var data = {};
        for (var i = 0; i < arr.length; i++) {
            data[arr[i].name] = arr[i].value;
        };
        var translates = "";
        $.each($('input:checkbox'),function () {
           if (this.checked){
               translates+=","+$(this).val();
           }
        });
        data.translate = translates;
        CertusFormAjax.ajax('addSysMeeting',{"param":JSON.stringify(data)},function (response) {
            var data = response.data;
            if (!data){
                layer.msg("预定时间重复");
                return;
            }else{
                layer.msg("预订成功");
                window.history.back();
            }
        });
    });
}